package com.qfedu.buy.server.provider;

import com.qfedu.buy.common.dto.GoodsSkuDetailDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: NeighborBuy
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2021-02-04 09:38
 */
@FeignClient("goodsserver")
public interface GoodsProvider {

    //skuid 查询商品信息
    @GetMapping("/server/goodssku/getgoodssku.do")
    GoodsSkuDetailDto queryById(@RequestParam int id);
    //更改库存
    @PutMapping("/server/goodssku/changestore.do")
    int change(@RequestParam int id,@RequestParam int num);
}
